package spark.sql

import org.apache.spark.sql.types.{StructField, StructType}

object SchemaTest {

  def main(args: Array[String]): Unit = {
    import org.apache.spark.sql.types.DataTypes._

    val maps = StructType(
      StructField("longs2strings", createMapType(LongType, StringType), false) :: Nil)

     println(maps.prettyJson)

    println( maps.defaultSize)
  }

}
